<template>
	<view class="">
		<view class="nav_top-bg">
			<u-navbar title="提现规则">
				<view class="u-nav-slot" slot="left">
					<u-icon name="arrow-left" @click="go_black" size="19"></u-icon>
					<u-line direction="column" :hairline="false" length="16" margin="0 10px"></u-line>
					<u-icon name="home" @click="goHome" size="20"></u-icon>
				</view>
			</u-navbar>
		</view>
		<view class="w-650">
			<view class="biaoti">提现规则</view>
			<view class="guize_info">
				<u-parse :content="content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import {index} from '@/api/user.js'
	export default {
		data(){
			return{
				content: ``
			}
		},
		onLoad() {
			this.guize()
		},
		methods:{
			// 获取规则
			guize(){
				index({}).then(res => {
					console.log("提现规则",res);
					if(res.code == 1){
						this.content = res.data.xieyi.tixianguize
					}
				})
			},
			go_black() {
				uni.navigateBack({
					delta: 1
				})
			},
			goHome() {
				uni.switchTab({
					url: '/pages/index/index'
				})
			},
		}
	}
</script>

<style>
	.guize_info{
		font-size: 28rpx;
		font-weight: normal;
		line-height: 55rpx;
		color: #5F5F5F;
	}
	.biaoti{
		font-size: 28rpx;
		font-weight: 600;
		color: #1F1F39;
		margin-top: 88rpx;
		margin-bottom: 26rpx;
	}
	page {
		background-color: #F7F8FB;
	}
</style>